export default function propertiesCopyUtils<T>(sourceArray: Array<any>, targetObject: T): T {
  console.log('sources:', sourceArray, targetObject)
  for (let sourceObject of sourceArray) {
    if (sourceObject == null || targetObject == null) return targetObject
    sourceObject = JSON.parse(JSON.stringify(sourceObject))
    console.log('parse stringify:', sourceObject, targetObject)
    for (const prop in targetObject) {
      console.log('设置属性：', prop)
      if (Object.prototype.hasOwnProperty.call(sourceObject, prop)) {
        targetObject[prop] = sourceObject[prop]
      }
    }
  }
  return targetObject
}
